CRMMessageBlock object
Use the CRMMessageBlock object to send messages in SMS and email format. CRMMessageBlock is a child of the CRM object. You can include the block in ASP pages to show a simple email form or to automate the message sent in response to an event. It can be used in visual and in hidden mode.
Syntax to initiate this block:
MessageBlock = CRM.GetBlock('messageblock');